package com.itheima.clientAndService01;

import java.io.FileReader;
import java.io.IOException;

public class IOClass06 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("day12\\a.txt");
        char[] chars = new char[1024];
        int c;
        while ((c = fr.read(chars)) !=-1){
            System.out.println(new String(chars,0,c));
        }
        /*int read;
        while ((read = fr.read()) != -1) {
            System.out.println((char) read);
        }*/
        fr.close();
    }
}
